package design.mode.effective_java.chapter3.item13;

/**
 * x.clone().getClass() == x.getClass()
 *
 * @author ZhongMingde on 2021/8/11
 */

public class BasePro extends Base implements Cloneable{
    @Override
    protected Object clone() throws CloneNotSupportedException{
        return super.clone();
    }

    public static void main(String[] args) throws CloneNotSupportedException {
        BasePro basePro = new BasePro();
        System.out.println(basePro.clone().getClass());
        System.out.println(basePro.getClass());
    }
}
